Model Table CUSTOMER ORDER LINE

This model fact represents customer order lines and it is based on the fact FACT_CUSTOMER_ORDER_LINE in IFS Cloud. All models that refer to this table will have the attributes and hierarchies as described below.

Attributes

Attribute Description (where applicable)
Agreement NoIf Price Source = AGREEMENT, PRICE_SOURCE_ID is displayed
Campaign IDIf Price Source = CAMPAIGN, PRICE_SOURCE_ID is displayed
Currency CodeThe currency code for currency based amounts
Customer Order LineDefined as ORDER_NO_KEY + ' - ' + LINE_NO_KEY + ' - ' + REL_NO_KEY + ' - ' + ' - ' + LINE_ITEM_NO_KEY
Demand CodeDefined as the description (client value) of demand code (DEMAND_CODE_DESC)
Invoice BlockedDefined as the description of invoice blocked attribute (INVOICE_BLOCKED_DESC)
Line StatusState (db value) of the customer order line (STATE)
Price SourcePrice Source Type in clear text
Price Source IDPrice Source ID - Agreement number, Campaign ID etc.
PriceList NoPrice list number used on order line
RentalRental Indicator TRUE/FALSE
Ship Days Early IntervalInterval describing the number of days an order line was shipped too early compared to planned ship date (SHIP_DAYS_EARLY)
Ship Days Late IntervalInterval describing the number of days an order line was shipped too late compared to planned ship date (SHIP_DAYS_LATE)
Ship Days Off Time IntervalInterval describing the number of deviation days an order line was shipped compared to planned ship date (SHIP_DAYS_OFF_TIME)
Supply CodeDefined as the description of the supply code (SUPPLY_CODE_DESC)
Tax CodeDefined as the description of the vat (tax) code (FEE_CODE_DESC)

Measures

Aggregation of measures is based on SUM if not explicitly noted.

This section describes the basic measures in the cube. These are either measures defined in the core Information Source, in the model itself or in the ETL process. The columns have the following meaning:

Measure Calculated Y/N Contains Time Intelligence Y/N Definition/Note (where applicable) Aggregation Type Hidden Y/N Tabular Expression
Avg Ship Days EarlyYYSum Ship Days Early/Count Early Order LinesAverageNDIVIDE ( [Sum Ship Days Early], [Count Early Order Lines] )
Avg Ship Days LateYNSum Ship Days Late/Count Late Order LinesAverageNdivide([Sum Ship Days Late],[Count Late Order Lines],0)
Avg Ship Days Off TimeYNSum Ship Days Off Time/(Count Early Order Lines +Count Late Order Lines)AverageNDIVIDE ( [Sum Ship Days Off Time], [Count Early Order Lines] + [Count Late Order Lines] )
Complete Order Lines %YYCount Complete Order Line / Count CO LineAverageNdivide(( [Count CO Line] - [Count Incomplete Order Line] ) , [Count CO Line])
Count Agreement Order LinesNYSumNSUM( 'CUSTOMER ORDER LINE'[COUNT_AGREEMENT_ORDER])
Count CO LineNYSumNSUM([COUNT_ORDER_LINE])
Count Campaign Order LinesNYSumNSUM([COUNT_CAMPAIGN_ORDER])
Count Complete Order LineNYSumN[Count CO Line] - [Count Incomplete Order Line]
Count Delivered Not InvoicedNYSumNSUM([COUNT_DELIVERED_NOT_INVOICED])
Count Delivered Order LineNYSumNSUM([COUNT_DELIVERED_ORDER_LINE])
Count Delivered as PlannedNYSumNSUM([COUNT_DELIVERED_AS_PLANNED])
Count Delivered as PromisedNYSumNSUM([COUNT_DELIVERED_AS_PROMISED])
Count Delivered as RequestedNYSumNSUM([COUNT_DELIVERED_AS_REQUESTED])
Count Early Order LinesNYSumNSUM([COUNT_EARLY_ORDER_LINE])
Count Incomplete Order LineNYSumNSUM([COUNT_INCOMPLETE_ORDER_LINE])
Count Late Order LinesNYSumNSUM([COUNT_LATE_ORDER_LINE])
Count On Time Order LineNYSumNSUM([COUNT_ON_TIME_ORDER_LINE])
Count Perfect Order LineNYSumNSUM([COUNT_PERFECT_ORDER_LINE])
Count PriceList Order LinesNYSumNSUM([COUNT_PRICELIST_ORDER])
Count SalesPart Order LinesNYSumNSUM([COUNT_BASEPRICE_ORDER])
Early Order Lines %YYCount Early Order Lines / Count CO LineAverageNdivide([Count Early Order Lines], [Count CO Line], BLANK())
Incomplete Order Lines %YYCount Incomplete Order Lines / Count CO LineAverageNdivide([Count Incomplete Order Line], [Count CO Line] )
Late Order Lines %YYCount Late Order Lines / Count CO LineAverageNdivide([Count Late Order Lines], [Count CO Line], BLANK())
Net Amount CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE('CUSTOMER ORDER LINE'[REP_CURR_NET_AMOUNT], [Currency Rate]) )
Net Amount RCYNReporting Currency calculationSumY[Net Amount CO Line RC]+[Net Amount CO Charge RC]-[Net Amount RMA Line RC]-[Net Amount RMA Charge RC]-[Net Amount CO Credit RC]
Net Amount in Base CurrNYSumY [Net Amount in Base Curr CO Line]+[Net Amount in Base Curr CO Charge]-[Net Amount in Base Curr RMA Line]-[Net Amount in Base Curr RMA Charge]-[Net Amount in Base Curr CO Credit]
Net Amount in Base Curr CO LineNYSumNSUM([NET_AMOUNT_BASE])
Net Amount in Order CurrNYSumNSUM([NET_AMOUNT_CURR])
Not Invoiced AmountNNSumNIF ( [Qty Sales CO Line] <> 0, ( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * ( [Net Amount in Base Curr CO Line] / [Qty Sales CO Line] ), 0 )
Not Invoiced Base Curr CO LineNNSumNSUM([NET_AMOUNT_NOT_INVOICED])
NotInvoiced Base Curr CO LineNNSumN( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * DIVIDE ( [Net Amount in Base Curr CO Line], [Qty Sales CO Line] )
NotInvoiced CO Line RCNNSumN( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * DIVIDE ( [Net Amount CO Line RC], [Qty Sales CO Line] )
On time Order Lines %YYCount On Time Order Lines / Count CO LineAverageNDIVIDE([Count On time Order Line],[Count CO Line])
Perfect Order Lines %YYCount Perfect Order Lines / Count CO LineAverageNDIVIDE ( [Count Perfect Order Line], [Count CO Line] )
ProfitYNNet Amount in Base Curr CO Line - Total Cost in Base Curr CO LineSumN[Net Amount in Base Curr CO Line]-[Total Cost in Base Curr CO Line]
Profit Margin %YYProfit Margin in Base Curr/Net Amount in Base CurrAverageYDivide( [Profit Margin in Base Curr], [Net Amount in Base Curr], BLANK())
Profit Margin CO Line %YNProfit/ Net Amount in Base Curr CO Line AverageYDIVIDE([Profit], [Net Amount in Base Curr CO Line])
Profit Margin GoalYNHard coded to 0.1SumN0.1
Profit Margin RCYYNet Amount RC - Total Cost RCSumY[Net Amount RC] - [Total Cost RC]
Profit Margin ValueYNProfit/ Net Amount in Base Curr CO Line SumYDIVIDE ( [Profit], [Net Amount in Base Curr CO Line], BLANK () )
Profit Margin in Base CurrYYNet Amount in Base Curr - Total Cost in Base CurrSumY[Net Amount in Base Curr] - [Total Cost in Base Curr]
Qty Assigned CO LineNYSumNSUM([QTY_ASSIGNED])
Qty Invoiced CO LineNYSumNSUM([QTY_INVOICED])
Qty Not Invoice CO LineNYSumNSUM([QTY_NOT_INVOICED])
Qty Picked CO LineNYSumNSUM([QTY_PICKED])
Qty Returned CO LineNYSumNSUM([QTY_RETURNED])
Qty Sales CO LineNYSumNSUM([SALES_QTY])
Qty Shipdiff CO LineNYSumNSUM([QTY_SHIPDIFF])
Qty Shipped CO LineNYSumNSUM([QTY_SHIPPED])
Qty Short CO LineNNSumNSUM([QTY_SHORT])
Sum Ship Days EarlyNYSumYSUM([SHIP_DAYS_EARLY])
Sum Ship Days LateNYSumYSUM([SHIP_DAYS_LATE])
Sum Ship Days Off TimeNYSumYSUM([SHIP_DAYS_OFF_TIME])
Total Cost CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE([REP_CURR_TOTAL_COST], [Currency Rate]))
Total Cost RCYYReporting Currency calculationSumN[Total Cost CO Line RC]+[Total Cost CO Charge RC]-[Total Cost RMA Line RC]-[Total Cost RMA Charge RC]
Total Cost in Base CurrNYSumY[Total Cost in Base Curr CO Line] + [Total Cost in Base Curr CO Charge] - [Total Cost in Base Curr RMA Line] - [Total Cost in Base Curr RMA Charge]
Total Cost in Base Curr CO LineNYSumNSUM([TOTAL_COST])
Total Order Line DiscountNNSumNSUM([TOTAL_ORDER_LINE_DISCOUNT])
Total Order Line Discount CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE([TOTAL_ORDER_LINE_DISCOUNT], [Currency Rate]))

Time Intelligence Measures

Time based measures are calculated in the cube with respect to other measures. The table below defines the meaning/definition of  the different time measures. These measures need to be used with a specific time dimension hierarchy [REPORTING_DATE].[RepDateMFHy].

Measure Meaning
YTD Aggregated value for current month in current  year. E.g. for period 202010 Ytd represents sum of periods 202000-202010.
R12 For a given period, the sum all months from one year back up to the previous month. E.g. Rolling 12 for 202010 is the sum of months 201910 - 202009
PY Previous Year
The value of the corresponding month one year back. E.g. for month 202010, the value of month 201910.
YTD PY Year to Date Previous Year
Aggregated value for corresponding month one year back. E.g. for month 202010 YTD Previous Year represents sum of months 201901-201910.
R12 PY Rolling 12 (completed) Months Previous Year
For a given month, first going one year back, then taking the sum of all months from one (more) year back up to the previous month. E.g. for month 202010 the sum of month 201810-201909
Avg XXX Ytd Sum XXX YTD/Count XXX YTD
Avg XXX R12 Sum XXX R12/Count XXX R12
XXX % YTD Count XXX YTD/Count YYY YTD
XXX % R12 Count XXX R12/Count XXX R12

USED BY MODEL(S)

Model Name Product Area
SalesSupply Chain

Data source Information

The data source for this object is defined using IFS Developer Tool. The data source contains a number of transformations where the model reads data from the last step, i.e. the Data source view name (DW Source View Name).

Additional information can be found in the IFS cloud documentation of Information Sources.

Model Table DW Source view (SQL Server) BI Access View Referenced Information Source Recommended Access Type
CUSTOMER ORDER LINEFACT_CUSTOMER_ORDER_LINE_TMFACT_CUSTOMER_ORDER_LINE_BIFACT_CUSTOMER_ORDER_LINEData Mart

SPECIAL INFO

This fact supports Reporting Date, i.e. a time dimension that can be used to when doing cross product/module reporting. This date is also used when finding the currency rate for calculation of reporting currency amounts.